package com.crm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author junxian,dou
 * @since 2024-11-25
 */
@Getter
@Setter
@TableName("crm_user")
@ToString
public class CrmUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * uuid	            
     */
    @TableId
    private String id;

    private String avatar;

    private String name;

    /**
     * 密码采用密文，MD5加密之后的数据
     */
    private String loginPwd;

    private String email;

    /**
     * 失效时间，表示在该时间之前该账户可用。
     */
    private String expireTime;

    /**
     * 锁定状态，为0时表示锁定，为1时表示启用。
     */
    private String lockState;

    private String deptno;

    /**
     * 用户的ip
     */
    private String allowIps;

    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.UPDATE)
    private String editTime;
    @TableField(fill = FieldFill.UPDATE)
    private String editBy;

    @TableField(exist = false)
    private List<CrmRole> roleList;
}
